import axios from 'axios'


//
const EMPLOYEE_BASE_REST_API_URL = "http://localhost:8090/api/v1/fundsrecoverymanagement";

class FundsrecoverymanagementService{



    getAllFundsrecoverymanagements(){
        return axios.get(EMPLOYEE_BASE_REST_API_URL)
    }

    createFundsrecoverymanagement(fundsrecoverymanagement){
        return axios.post(EMPLOYEE_BASE_REST_API_URL,fundsrecoverymanagement)
    }

    getFundsrecoverymanagementById(fundsrecoverymanagementId){
        return axios.get(EMPLOYEE_BASE_REST_API_URL + "/" + fundsrecoverymanagementId)
    }

    updateFundsrecoverymanagement(fundsrecoverymanagementId,fundsrecoverymanagement){
        return axios.put(EMPLOYEE_BASE_REST_API_URL + "/" + fundsrecoverymanagementId,fundsrecoverymanagement)

    }
    getFundsrecoverymanagementByEmployeeId(employeesId){
        return axios.get(EMPLOYEE_BASE_REST_API_URL + "/getByEmployee/" + employeesId)
    }

    deleteFundsrecoverymanagement(fundsrecoverymanagementId){
        return axios.delete(EMPLOYEE_BASE_REST_API_URL + "/" + fundsrecoverymanagementId);
    }


}

export default new FundsrecoverymanagementService();